package com.stroke.graphics;

import javax.swing.*;
import java.awt.*;

/**
 * Author: Igor Bubelov
 * Date: 3/5/11 7:55 PM
 */
public class Screen extends JFrame {
    private Canvas canvas;

    public Screen(int width, int height) throws HeadlessException {
        canvas = new Canvas();
        canvas.setSize(width, height);

        getContentPane().add(canvas);

        setResizable(false);

        setDefaultCloseOperation(EXIT_ON_CLOSE);
    }

    public Canvas getCanvas() {
        return canvas;
    }
}
